package com.miya.demo.support.netty.bean;

import com.miya.demo.support.netty.enums.MessageActionEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author CaiXiaowei
 * @date 2023/1/17
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DataContent implements Serializable {

    private static final long serialVersionUID = 3568656502453506929L;

    /**
     * 行动
     */
    private Integer action = MessageActionEnum.CONNECT.code;

    /**
     * 聊天信息
     */
    private ChatMsg chatMsg;

    /**
     * 扩展
     */
    private String extend;
}
